@import url('@/assets/css/theme.css');

.user-profile-container {
  padding: 20px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  background: var(--background-color, linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%));
}

/* 浮动形状装饰样式 */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  z-index: 0;
  filter: blur(40px);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, rgba(67, 56, 202, 0.3), rgba(79, 70, 229, 0.2));
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, rgba(219, 39, 119, 0.3), rgba(236, 72, 153, 0.2));
  bottom: -100px;
  left: -50px;
  animation-delay: 2s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
  top: 50%;
  left: 10%;
  animation-delay: 4s;
}

.back-button {
  margin-bottom: 20px;
  position: relative;
  font-size: 16px;
  z-index: 1;
}

.profile-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-background, rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: none;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s ease-out;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #4f46e5;
}

.profile-content {
  padding: 20px 0;
}

.avatar-section {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.avatar-container {
  text-align: center;
}

.profile-avatar {
  margin-bottom: 15px;
  border: 3px solid #4f46e5;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.info-section,
.system-section {
  margin-bottom: 30px;
}

.action-section {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.avatar-edit-dialog {
  text-align: center;
}

.avatar-uploader {
  display: inline-block;
  margin-bottom: 15px;
}

.upload-tips {
  color: #666;
  font-size: 14px;
}

/* 动画效果 */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-profile-container {
    padding: 10px;
  }
  
  .profile-card {
    margin: 0;
  }
  
  .action-section {
    flex-direction: column;
    align-items: center;
  }
  
  .action-section .el-button {
    width: 200px;
  }
}
